<%-- 
    Document   : management
    Created on : Nov 2, 2011, 12:10:22 AM
    Author     : Mr-aUgust
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>East2West Tours and Travels</title>
         <link rel="stylesheet" type="text/css" href="../css/giaodien.css" />
         <style type="text/css">
            h2 
            {
            text-align:center;
            font-size:1.3em;
            color:white;
            }
            h1 {
            font: bold 16px Arial, Helvetica, sans-serif;
            }

            p {
            font: 11px Arial, Helvetica, sans-serif;
            }

            a {
            color:white;
            text-decoration: none;
            }

            a:hover {
            background: #900;
            color: #FFF;
            }
        </style>
    </head>
    <body>
        <%
            String user="";
            if(session.getAttribute("Admin")!=null)
                {
                user=session.getAttribute("Admin").toString();
        %>
     <div id="nava"><!--khun ngoai bao toan bo-->
         <div id="header"><!--header-->
                <div id="khunadmin">
                    <table id="tb">
                        <tr>
                            <td><a >hi! <%=user%></a>|</td>
                            <td><a id="atb" href="management.jsp?page=ManageAdmin">Manage Admin</a>|</td>
                            <td><a id="atb" href="../ControllerAdminLogout">Logout</a></td>
                        </tr>
                    </table>
                </div>
            </div><!ket hut header>
            <div><!--menu ngan-->
                 <div id="wrapper">
                        <ul id="topnav">
                           <li><a href="../index.jsp">Home</a></li>
                           <li><a href="#">Manage Tours</a>
                                <ul class="children">
                                   <li><a href="management.jsp?page=CreateTourPackage">Create New Tour Package</a></li>
                                   <li><a href="management.jsp?page=ManageTourPackage">List of Tours</a></li>
                                   <li><a href="management.jsp?page=ManageTourBook">List Book Tours</a></li>
                                   <li><a href="management.jsp?page=ManageTourCancel">List Cancel Tours</a></li>
                                   <li><a href="management.jsp?page=ManageTourBooking">List of Booking Tours</a></li>
                                
                                </ul>
                            </li>
                           <li><a href="">Manage Cars</a>
                                <ul class="children">
                                   <li><a href="management.jsp?page=ModelCars">Model Car</a></li>
                                   <li><a href="management.jsp?page=CreateCar">Create Car</a></li>
                                   <li><a href="management.jsp?page=ListCars">List Of Cars</a></li>
                                   <li><a href="management.jsp?page=CarBooking">List Cars Rental</a></li>
                                   <li><a href="management.jsp?page=CarCancel">List Cars Cancel</a></li>
                                   <li><a href="management.jsp?page=ListReceivedCar">List Customer Received Car</a></li>
                                </ul>
                           </li>
                           <li><a href="management.jsp?page=Hotels">Hotels</a>
                           <ul class="children">
                                   <li><a href="management.jsp?page=Locations">Manage Locations</a></li>
                                   <li><a href="management.jsp?page=Hotels">Manage Hotels</a></li>
                                </ul>
                           </li>
                           <li><a href="management.jsp?page=Flights">Flights</a>
                                <ul class="children">
                                    <li><a href="management.jsp?page=Locations">Manage Locations</a></li>
                                    <li><a href="management.jsp?page=Flights">Manage Flights</a></li>
                                </ul>
                            </li>
                           <li><a href="management.jsp?page=Customers">Customers</a>
                            </li>
                            <li><a href="management.jsp?page=SalesAnalysis">Sales Analysis</a></li>
                        </ul>  
                </div><!--end #wrapper-->

            </div><!ket hut>
            <div id="content">
                 <%
                    if(request.getParameter("page")!= null)
                     {
                                String U=request.getParameter("page");
                                String str=U+".jsp";
                     %>
                        <jsp:include page="<%=str%>"/>                  
                     <%                              
                     }             
                     else
                     {
                      %>                   
                      <jsp:include page="ListCars.jsp" />
                       <%
                       }
                    %>
                
            </div><!left>
            <div id="foot">
               <p class="p">@ Copy right<br>
                    Mekong Delta Aptech | Sem IV | eProject East2West Tours and Travels<br>
                    Group 5 | them Tên.... | them Tên.... | them Tên....
                <p>
            </div><!foot>
        </div><!vien chung>
        <%
        }else
            {
                %>
                <jsp:forward page="AdminLogin.jsp" />
                <%
            }
        %>
    </body>
</html>
